﻿@model MVCExtension.Points.Models.UserViewModel

@{
    ViewBag.Title = "input age";
}

<h2>Input age</h2>
@using (Html.BeginForm("InputAge", "Service", FormMethod.Post, new { @class = "form" }))
{
    <div class="col-md-12">
        @Html.ValidationSummary()
    </div>
    <div class="input-group">
        <span class="col-md-4">@Html.LabelFor(x => x.Name)</span>
        @Html.TextBoxFor(x => x.Name, new {@class = "form-control"})
    </div>

    <div class="input-group">
        <span class="col-md-4">@Html.LabelFor(x => x.Age)</span>
        @Html.TextBoxFor(x => x.Age, new { @class = "form-control" })
    </div>

    <div class="col-md-12">
        <input type="submit" class="btn btn-primary pull-right" value="submit!" />
    </div>

}